package cn.cvs.dao.storage;

import cn.cvs.pojo.Storage;
import cn.cvs.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SysStorageMapper {

    List<Storage> sj1(Map<String, Object> map);

    List<Storage> sj2(Map<String,Object> map);

    List<Storage> sj3(@Param("id") Integer id);

    List<Supplier> sj4(@Param("id") Integer id);

    int SupplierAdd(Supplier supplier);

    int SupplierUpdate(Supplier supplier);

    int SupplierDelete(Integer id);

    List<Storage> selectAll(@Param("id") Integer id,@Param("payStatus") Integer payStatus,@Param("goodsName") String goodsName);

    List<Supplier> supplierSupCodeBySupName(@Param("supCode")String supCode,@Param("supName")String supName);

    List<Supplier> supplierChoose(@Param("supName") String supName, @Param("supCode")String supCode, @Param("supContact") String supContact, @Param("createdTime")Date createdTime);

    List<Supplier> supplierForeachByArray(Integer[] id);

    List<Storage> storageBySupplierId(Integer[] supplierId);

    List<Storage> storageBySupplierIdList(List<Integer> supplierId);

    List<Storage> storageBySupplierIdMap(Map<String,Object> supplierIdMap);

    int supplierByUpdate(Supplier supplier);

    int supplierByUpdateAndtrimAanif(Supplier supplier);

    List<Storage> storageLimit(@Param("pageBegin")Integer pageBegin,@Param("pageSize") Integer pageSize);


    List<Supplier> supplierLimit(@Param("pageBegin")Integer pageBegin,@Param("pageSize") Integer pageSize);


}
